<template>
  <div class="common-layout">
    <el-container class="lay-container">
      <el-aside :width="$store.state.isCollapse ? '180px' : '64px'" >
        <common-aside></common-aside>
      </el-aside>
      <el-container>
        <el-header>
          <CommonHeard></CommonHeard>
        </el-header>
        <el-main>
          <common-tab></common-tab>
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>

  </div>
</template>
<script>
import CommonAside from '../components/CommonAside.vue'
import CommonHeard from '../components/CommonHeard.vue'
import CommonTab from '../components/CommonTab.vue'

export default {
  components: { CommonHeard, CommonAside, CommonTab }
}
</script>
<style lang="less" scoped>
.el-container {
  flex-wrap: wrap;
  align-items: flex-start;
 
}
.el-main{
  width: 100%;
  height: 100%;
  padding-top: 0px;
 }
.common-layout {
  height: 100%;
  width: 100%;
  .lay-container{
    flex-wrap: nowrap;
  }
  & > .el-container {
    height: 100%;

    & > .el-aside {
      height: 100%;
      background-color: #545c64;
    }
  }
  .el-header {
    padding: 0;
    width: 100%;
  }
}
</style>